﻿@model BeautyTech.WebSite.Areas.Admin.Models.Blogs.BlogPostModel

@{
    ViewBag.Title = "Create";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}

<div id="content">
    <div class="cph">
       <div class="section-header">
            <div class="title">
                Ajouter un nouveau Blog
                @Html.ActionLink("(Revenir à la liste des blogs)", "Index")
            </div>
            <div class="options">
                <a class="btn btn-primary" href="/Admin/Blog/Create">
                   <i class="icon-ok icon-white"></i>
                   Sauvegarder
                </a>
            </div>
        </div>
        <div id="blog-post-edit" class="tabbable">

            <ul class="nav nav-tabs">
                <li class="active"><a data-toggle="tab" href="#blog-post-edit-1">Info</a></li>
                <li class=""><a data-toggle="tab" href="#blog-post-edit-2">SEO</a></li>
            </ul>
            <div class="tab-content">
                <div id="blog-post-edit-1" class="tab-pane fade active in">
                    @using (Html.BeginForm()) {
                        @Html.AntiForgeryToken()
                        @Html.ValidationSummary(true)
                        <table class="adminContent">
                            <tr>
                                <td class="adminTitle">                
                                    <div class="ctl-label">
                                        @Html.LabelFor(model => model.Title)
                                        <a id="tooltip" title="" data-placement="top" data-toggle="tooltip" href="#" data-original-title="Tooltip on top">
                                            <i class="icon-question-sign"></i>
                                        </a>              
                                    </div>
                                </td>
                                <td>
                                    <div class="adminData">
                                        @Html.EditorFor(model => model.Title)
                                        @Html.ValidationMessageFor(model => model.Title)
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="adminTitle">                
                                    <div class="ctl-label">
                                        @Html.LabelFor(model => model.Intro)
                                        <i class="icon-question-sign"></i>
                                    </div>
                                </td>
                                <td>
                                    <div class="adminData">
                                        @Html.EditorFor(model => model.Intro)
                                        @Html.ValidationMessageFor(model => model.Intro)
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="adminTitle">                
                                    <div class="ctl-label">
                                        @Html.LabelFor(model => model.Body)
                                        <i class="icon-question-sign"></i>
                                    </div>
                                </td>
                                <td>
                                    <div class="adminData">
                                        @Html.EditorFor(model => model.Body)
                                        @Html.ValidationMessageFor(model => model.Body)
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="adminTitle">                
                                    <div class="ctl-label">
                                        @Html.LabelFor(model => model.AllowComments)
                                        <i class="icon-question-sign"></i>
                                    </div>
                                </td>
                                <td>
                                    <div class="adminData">
                                        @Html.CheckBoxFor(model => model.AllowComments)
                                        @Html.ValidationMessageFor(model => model.AllowComments)
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="adminTitle">                
                                    <div class="ctl-label">
                                        @Html.LabelFor(model => model.Tags)
                                        <i class="icon-question-sign"></i>
                                    </div>
                                </td>
                                <td>
                                    <div class="editor-field">
                                        @Html.EditorFor(model => model.Tags)
                                        @Html.ValidationMessageFor(model => model.Tags)
                                    </div>
                                </td>
                            </tr>
                        </table>
                            <p>
                                <input type="submit" value="Create" />
                            </p>
                        }
                    </div>
                    <div id="blog-post-edit-2" class="tab-pane fade">
                    </div>
                </div>
        </div>
    </div>
</div>

@section scripts
{
    <script src="~/Areas/Admin/Scripts/App/Views/Blog/Create.js"></script>
}